package com.lmall.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "商品实体")
public class BookDTO {
    @ApiModelProperty("图书id")
    private Long id;
    @ApiModelProperty("图书标题")
    private String title;
    @ApiModelProperty("图书作者")
    private String author;
    @ApiModelProperty("图书出版社")
    private String publisher;
    @ApiModelProperty("图书价格")
    private Double price;
    @ApiModelProperty("图书分类id")
    private Integer categoryId;
    @ApiModelProperty("图书描述")
    private String description;
    @ApiModelProperty("图书封面图片")
    private String coverImage;
    @ApiModelProperty("图书创建时间")
    private LocalDateTime createTime;
}
